package com.example.iotmanagerment26.domain;

import org.springframework.stereotype.Component;

@Component
public class DeviceLocation {
    int id;
    String device;
    double latitude,longitude;
    String location;

    public DeviceLocation() {

    }

    public DeviceLocation(int id, String device, double latitude, double longitude, String location) {
        this.id = id;
        this.device = device;
        this.latitude = latitude;
        this.longitude = longitude;
        this.location = location;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "DeviceLocation{" +
                "id=" + id +
                ", device='" + device + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", location='" + location + '\'' +
                '}';
    }
}
